<?php
    require_once("./classes/sessao.php");
    require_once("./classes/interfaces.php");
    require_once("./classes/conexao.php");

    session_start();

    if (!isset($_SESSION['ANAWEB']))
    {
        $pagina = new Interfaces();
        $pagina->Header(Nao_Logado);
        $pagina->Body();
        echo Nao_Logado_Msg;
        $pagina->Footer();
    }
    else
    {
        $pagina = new Interfaces();
        $pagina->Header(" ANAWEB ");
        $pagina->Body();
        if (isset($_GET['cat']) && isset($_GET['file']))
        {
            $arq = base64_decode($_GET['file']);
            $xml = DOMDocument::load($arq);
?>
            <div id="cadastro">
            <form name="novoitem" action="arv_create_f.php?file=<?php echo $_GET['file'] ?>" method="post">
            <p><label for="itname"><?php echo (Nome) ?>:</label> <input type="text" name="nome" id="itname"></p>
            <input type="hidden" name="file" value="<?php echo $arq ?>">
            <input type="submit" value="<?php echo Enviar ?>">
            </form>
            </div>
<?php
        }
        $pagina->Footer();
    }
?> 

